﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BacklogParser.Models
{
    public class DatesRightsEffective
    {
        public string FirstExaminationReportDespatched { get; set; }

        public string PatentMaintainedAsAmended { get; set; }

        public string ProceedingsResumed { get; set; }

        public string ProceedingsInterrupted { get; set; }

        public string ProceedingsSuspended { get; set; }

        public string RequestForConversionToNationalApplication_Date { get; set; }

        public string RequestForConversionToNationalApplication_Country { get; set; }

        public string RequestForExamination { get; set; }

        public override string ToString()
        {
            var builder = new StringBuilder();
            if(!string.IsNullOrEmpty(FirstExaminationReportDespatched))
            {
                builder.AppendLine("FirstExaminationReportDespatched " + FirstExaminationReportDespatched);
            }

            if (!string.IsNullOrEmpty(this.PatentMaintainedAsAmended))
            {
                builder.AppendLine("PatentMaintainedAsAmended " + PatentMaintainedAsAmended);
            }

            if (!string.IsNullOrEmpty(this.ProceedingsInterrupted))
            {
                builder.AppendLine("ProceedingsInterrupted " + ProceedingsInterrupted);
            }

            if (!string.IsNullOrEmpty(this.ProceedingsResumed))
            {
                builder.AppendLine("ProceedingsResumed " + ProceedingsResumed);
            }

            if (!string.IsNullOrEmpty(this.ProceedingsSuspended))
            {
                builder.AppendLine("ProceedingsSuspended " + ProceedingsSuspended);
            }

            if (!string.IsNullOrEmpty(this.RequestForConversionToNationalApplication_Country))
            {
                builder.AppendLine("RequestForConversionToNationalApplication_Country " + RequestForConversionToNationalApplication_Country);
            }

            if (!string.IsNullOrEmpty(this.RequestForConversionToNationalApplication_Date))
            {
                builder.AppendLine("RequestForConversionToNationalApplication_Date " + RequestForConversionToNationalApplication_Date);
            }

            if (!string.IsNullOrEmpty(this.RequestForExamination))
            {
                builder.AppendLine("RequestForExamination " + RequestForExamination);
            }
            
            return builder.ToString();
        }

    }




}
